import axios from 'axios';
import request from '/@/utils/request';

// 配置新建一个 axios 实例
const service_ = axios.create({
	// baseURL: import.meta.env.VITE_API_URL as any,
	timeout: 600000,
	headers: { 'Content-Type': 'application/json','Access-Control-Allow-Origin':'*' },
});

export default{
	request(url: string) {
		return request({
            url: `/restful/webproxy/request?url=${url}}`,
            //url:url,
			method: 'get',
		});
    },
    checkUrl(url: string) {
		return service_({
            //url: `/restful/webproxy/request?url=${url}}`,
            url:url,
			method: 'get',
		});
	},
}
